﻿using System;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using FwProject.Authorization.Users;
using FwProject.Core.TypeNumber;
namespace FwProject.Core.Restaurant
{
    /// <summary>
    /// 装车明细
    /// </summary>
    [Table("LoadingCarInfo")]
    public class LoadingCarInfo: FullAuditedEntity<Guid>
    {
        public const int StringLength = 200;
        /// <summary>
        /// 装车id
        /// </summary>
        /// <value>The employee restaurant identifier.</value>
      
        public Guid? LoadCarId { get; set; }

        [ForeignKey("LoadCarId")]
        public  LoadCar LoadCarModel { get; set; }
      

        /// <summary>
        /// 装车套数
        /// </summary>
        /// <value>The countproduct.</value>
        [Required]
        public int Countproduct { get; set; } = 0;

        /// <summary>
        /// 型号名称
        /// </summary>
        public string TypeNumberName { get; set; }

        /// <summary>
        /// 装车型号主键
        /// </summary>
        public Guid? TypeNumberInfoId { get; set; }
        /// <summary>
        /// 配送型号
        /// </summary>
        /// <value>The user info DAO.</value>
        [ForeignKey("TypeNumberInfoId")]
        public  TypeNumberInfo TypeNumberInfoModel { get; set; }
    }
}
